package com.sinosoft.vaccinetoai.server.business.chatrecord.updatechatrecord.controller;

import javax.validation.Valid;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import com.sinosoft.vaccinetoai.server.business.chatrecord.updatechatrecord.io.UpdateChatRecordIO;
import com.sinosoft.vaccinetoai.server.business.chatrecord.updatechatrecord.vo.UpdateChatRecordVO;
import com.sinosoft.vaccinetoai.server.business.chatrecord.updatechatrecord.service.IUpdateChatRecordService;

/**
 * @ClassName: UpdateChatRecordController
 * @ClassNameExplain: 
 * @Description: 更新会话聊天接口
 * @author xiazhihao
 * @date 2024年10月25日 17:22
 */
@RestController("UpdateChatRecordController")
@RequestMapping("/chatRecord")
public class UpdateChatRecordController {
	
	@Autowired
	@Qualifier("UpdateChatRecordService")
	IUpdateChatRecordService updateChatRecordService;
	
	/**
	 * @Title: updateChatRecord
	 * @TitleExplain: 
	 * @Description: 更新会话聊天接口方法
	 * @param updateChatRecordIO 入参
	 * @return UpdateChatRecordVO 返参
	 * @version 1.0.3
	 * @author xiazhihao
	 */
	@PostMapping("/update")
	public UpdateChatRecordVO updateChatRecord(@Valid @RequestBody UpdateChatRecordIO updateChatRecordIO) throws Exception {
		return updateChatRecordService.updateChatRecord(updateChatRecordIO);
	}
	
}
